package com.koalton.steward.flow.service;

import com.koalton.steward.flow.dao.FlowDao;
import com.koalton.steward.flow.dao.FlowDaoImpl;
import com.koalton.steward.flow.dao.FlowItemDaoImpl;
import com.koalton.steward.flow.model.Flow;
import com.koalton.steward.flow.model.FlowItem;
import com.koalton.steward.flow.model.ItemType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by koalton on 2017/7/11.
 */
@Service
public class FlowItemService {
    @Autowired
    FlowItemDaoImpl flowItemDaoImpl ;

    /**
     * 查询列表
     * @param itemType
     * @return
     */
    public List<FlowItem> list(ItemType itemType){
        return flowItemDaoImpl.list(itemType);
    }

    /**
     * 查询列表
     * @param itemType
     * @param itemKindCode
     * @return
     */
    public List<FlowItem> list(ItemType itemType,Integer itemKindCode){
        return flowItemDaoImpl.list(itemType,itemKindCode);
    }
}
